package com.vehicle.common.web.editor;

import com.vehicle.common.util.DateHelper;

import java.beans.PropertyEditorSupport;

/**
 * Created by yantingbin on 2017/7/18.
 */
public class DateEditor extends PropertyEditorSupport {
    @Override
    public void setAsText(String text) throws IllegalArgumentException {
        setValue(DateHelper.parseDate(text));
    }
}
